﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


using SharpDX;
using SharpDX.D3DCompiler;
using SharpDX.Direct3D;
using SharpDX.Direct3D11;
using SharpDX.DXGI;

namespace SharpDX
{ 
    public class CTexture
    {
        public ShaderResourceView m_textureResource;
        public bool Initialize(SharpDX.Direct3D11.Device device,string filename)
        {
            m_textureResource = ShaderResourceView.FromFile(device, filename);
            return true;
        }
        public void ShutDown()
        {
            if(m_textureResource!=null)
            {
                m_textureResource.Dispose();
                m_textureResource = null;
            }
        }
    }
}
